import { axios } from '@/utils/request'

/**
 * 查询水電抄表記錄表
 *
 * @author anti
 * @date 2021-05-10 21:19:36
 */
export function hydropowerMeterPage (parameter) {
  return axios({
    url: '/hydropowerMeter/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 水電抄表記錄表列表
 *
 * @author anti
 * @date 2021-05-10 21:19:36
 */
export function hydropowerMeterList (parameter) {
  return axios({
    url: '/hydropowerMeter/list',
    method: 'get',
    params: parameter
  })
}

export function SdFyListByDetail (parameter) {
  return axios({
    url: '/hydropowerMeter/getSdFyListByDetail',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加水電抄表記錄表
 *
 * @author anti
 * @date 2021-05-10 21:19:36
 */
export function hydropowerMeterAdd (parameter) {
  return axios({
    url: '/hydropowerMeter/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑水電抄表記錄表
 *
 * @author anti
 * @date 2021-05-10 21:19:36
 */
export function hydropowerMeterEdit (parameter) {
  return axios({
    url: '/hydropowerMeter/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除水電抄表記錄表
 *
 * @author anti
 * @date 2021-05-10 21:19:36
 */
export function hydropowerMeterDelete (parameter) {
  return axios({
    url: '/hydropowerMeter/delete',
    method: 'post',
    data: parameter
  })
}

export function getMeterListByBillId (parameter1, parameter2) {
  return axios({
    url: '/hydropowerMeter/getMeterListByBillId/' + parameter1 + '/' + parameter2,
    method: 'get'
  })
}

export function getMeterListByStateIdOnJzcb (parameter1, parameter2) {
  return axios({
    url: '/hydropowerMeter/getMeterListByStateIdOnJzcb/' + parameter1 + '/' + parameter2,
    method: 'get'
  })
}

export function getMeterListByStateIdOnJzcbForOne (parameter1, parameter2) {
  return axios({
    url: '/hydropowerMeter/getMeterListByStateIdOnJzcbForOne/' + parameter1 + '/' + parameter2,
    method: 'get'
  })
}

/**
 * 保存集中抄錶
 *
 * @author anti
 * @date 2021-05-10 21:19:36
 */
 export function hydropowerMeterJzcbAdd (parameter) {
  return axios({
    url: '/hydropowerMeter/addJzcb',
    method: 'post',
    data: parameter
  })
}

/**
 * 保存换表
 *
 * @author anti
 * @date 2021-05-10 21:19:36
 */
 export function hydropowerMeterhuanAdd (parameter) {
  return axios({
    url: '/hydropowerMeter/addHuan',
    method: 'post',
    data: parameter
  })
}

export function hydropowerMeterhuanAddOne (parameter) {
  return axios({
    url: '/hydropowerMeter/addHuanOne',
    method: 'post',
    data: parameter
  })
}
